package com.mobor.moborsvr.infra.search;

import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.Future;

/**
 * This class manages all search requests using multi threading infrastructure 
 * @author teroleg
 *
 */
public interface SearchRequestManager {
	/**
	 * Executes search for existing objects according to provided callable searcher.
	 * @param worker specific searcher for to run 
	 * @return list of objects discovered by specific callable searcher (worker)
	 */
	public Future<List<?>> executeSearch(Callable<List<?>> worker);

}